﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AnyFileManagement.UI.Controls
{
    [DefaultEvent("TextChange")]
    public partial class CommandTextBox : UserControl
    {
        private ToolTip toolTip;
        private string _toolTip;

        public string ToolTip
        {
            get { return _toolTip; }
            set { 
                _toolTip = value;
                this.toolTip.SetToolTip(this, _toolTip);
            }
        }

        public CommandTextBox()
        {
            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            this.SetStyle(ControlStyles.ResizeRedraw, true);
            this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            InitializeComponent();
        }
    }
}
